# -*- coding: utf-8 -*-
# import datetime
import time

from method import *





# write_yaml('uat')
#
#
# def read_yaml(name):
#     with open(r'D:\python\pythonProject\test2\add_employee_requests.yaml', 'r', encoding='utf-8')as file1:
#             data=yaml.load(file1,Loader=yaml.FullLoader)
#             return data[name]
#
# audit_id=45012
# b=read_yaml('getAuditConfig1')['url']
# b=b+str(audit_id)
# print(b)

# aaa={
#   "login": {
#     "url": "http://172.16.91.154/new/oa_auth/login",
#     "method": "post",
#     "headers": {
#       "Content-Type": "application/json"
#     },
#     "data": {
#       "password": "inx/oXug2AB9Oz/Uhvza++kzlE903NwUMKd2JYPq6ZfRhm5qBENBzksxTNsHTFsz66hSv+bPmenfrMtXU0Flr4SUxMEL0m+HBlsvf/9tSxdGqLpjih58tJOF5fO5O4vowyMiYfFxjYrJnUEFRquUHyP6GxDK2d8/KMx2sVCkqWfOb2r4hpLKGZd3zNmeoV5VpyZuegdJlb5L6RNcTJGL15YsLv9Ksb+1NJyoaygn2tKSnHYp6C7V2v6ErkB0JXYNWd+y6QO7WSIJYPNQ3N6p9x6X6jv3FZXCorrES/p5Y2PxXdYwN4E1jqbtU/BnhhCtgZfBUPj5gHEFjwsuc/D7QA==",
#       "userNumber": "20280",
#       "code": "",
#       "uuid": ""
#     },
#     "expect": 200
#   }
# }

# print(type(aaa))
# print(aaa['login']['data'])


# def ruleNo():
#   c2 = input('请输入规则编号：')
#   if c2 is None:
#     c2 = 'SBGZ20240709008'
#   return c2
#
#
# c2= ruleNo()
# print(c2)
# print(type(c2))
# import time,datetime
# random_uuid = int(time.time()*1000)
#
# print(random_uuid)
# # print(len(str(random_uuid)))

# from datetime import datetime
# a1=datetime.now()
# time.sleep(2)
# a2=datetime.now()
#
# print((a2-a1).seconds)
# print(f'本次下载共花费了{(a2-a1).seconds}秒')



# from queue import Queue
# urls=['4343','343','43343']
# q = Queue()
# for i, url in enumerate(urls):
#   q.put((i, url))
# while not q.empty():
#    print(q.get()[1])
# a=1
# for b in range(10):
#   while a<b+1:
#     pass
#   if a==b+1:
#     a=a+1
# l1=[]
# l2=[]
# l3=[]
# l4=[]
# a=23323
# print(f'nihsdsdsd{a}')
# import uuid
# print(str(uuid.uuid4()).replace('-',''))
# # --------------------------------------------------------------
# import pandas as pd
#
# import os
# def mysql(base):
#   # 246数据库
#   if base == '154':
#     mysql_host = '172.16.91.155'
#     mysql_port = 3306
#     mysql_user = 'root'
#     mysql_passwd = 'deke@2024'
#     mysql_database = 'dekeinfo_154'
#
#   conn = pymysql.connect(host=mysql_host, port=mysql_port, user=mysql_user, passwd=mysql_passwd, charset='utf8',
#                          db=mysql_database)
#   return conn
#
#
# # 指定Excel文件路径
# path='E:\TXT\excel'
# file_name=os.listdir(path)[0]
# file_path=os.path.join(path,file_name)
# # file_path = r'E:\TXT\excel\zb_0_202411111035082843406.xls'
#
# # 读取Excel文件
# sheet_name = 'Sheet1'
# df = pd.read_excel(file_path, sheet_name=sheet_name,skiprows=1)
#
# data_lists=[]
# for  index,row in df.iterrows():
#    data_list=row.values.tolist()
#    data_lists.append(data_list)
# print(data_lists)
#
# conn = mysql('154')
# cursor = conn.cursor()
# print("数据开始写入，请等待")
# for data in data_lists:
#   url=f"https://www.bidcenter.com.cn/news-{data[0]}-4.html"
#   title=data[1]
#   city=data[2]
#   type=data[3]
#   release_time=data[4]
#   sql = f"INSERT INTO `dekeinfo_154`.`bid_opportunity` (`id`, `title`, `type`,`url`, `city`, `release_time`, `create_time` ) VALUES (NULL,'{title}','{type}','{url}','{city}','{release_time}',now());"
#   cursor.execute(sql)
#   conn.commit()
#
# print("数据写入完成！")
#
# # 检查是否是文件
# if os.path.isfile(file_path):



#   os.remove(file_path)  # 删除文件
#   print(f"已删除文件: {file_name}")
#
# import os
# def clear_folder(folder_path):
#     """
#     清空指定文件夹下的所有文件
#     :param folder_path: 要清空的文件夹路径
#     """
#     for root, dirs, files in os.walk(folder_path):
#         for file in files:
#             file_path = os.path.join(root, file)
#             try:
#                 if os.path.isfile(file_path):
#                     os.remove(file_path)
#             except Exception as e:
#                 print(f"删除文件 {file_path} 时出错: {e}")
#
#
# path=r'C:\Users\EDY\Downloads'
# file_name=os.listdir(path)[1]
# try:
#     if file_name:
#         file_path=os.path.join(path,file_name)
#         print(file_path)
# except Exception as e:
#     print(f"删除文件 {file_path} 时出错: {e}")
# def multiply():
#     return [lambda x: i * x for i in range(4)]
#
#
# print([m(100) for m in multiply()])


# def multiply():
#     return (lambda x: i * x for i in range(4))
#
#
# print([m(100) for m in multiply()])
#
from functools import lru_cache


# @lru_cache()
# def change_money(total):
#     if total == 0:
#         return 1
#     if total < 0:
#         return 0
#     return change_money(total - 2) + change_money(total - 3) + \
#         change_money(total - 5)
# n=3
# list_comp = [[0] * n for _ in range(n)]

#
# n = 3
# matrix = []
#
# # 使用两层 for 循环创建矩阵
# for i in range(n):
#     row = []  # 创建一个新的行列表
#     for j in range(n):
#         row.append(0)  # 在行列表中添加一个 0
#     matrix.append(row)  # 将行列表添加到矩阵中
#
# # 打印矩阵
# for row in matrix:
#     print(row)
# def count_digit(number):
#     return len(str(number))
#
#
# def countThree(digit):
#     if not isinstance(digit, int):
#         raise TypeError('number is not int')
#     # digit = len(str(number))
#     if (digit <= 0):
#         return 0
#     if (digit == 1):
#         return 1
#     return 10 * countThree(digit - 1) + 10 ** (digit - 1)
#
#
# print(countThree(count_digit(9999)))

a='hello'
b=a[:1:-1]
c=a[:-1:-1]
print(b)
print(c)
